//
//  UIButton+Extension.swift
//  LJWeibo
//
//  Created by Raymond on 15/12/22.
//  Copyright © 2015年 liu. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(imageName: String, fontSize: CGFloat, title: String) {
        self.init()
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        setTitle(title, forState: UIControlState.Normal)
        
    }
}
